<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>（用户信息）list.jsp</title>
<link rel="stylesheet" type="text/css" href="css/style.css">
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/common.js"></script>
<style type="text/css">
.hover{background: #89beb3;}

</style>
</head>
<body>
	<h2>list.jsp</h2>
	<table>
		<tr>
			<th>序号</th>
			<th>学号/工号</th>
			<th>姓名</th>
			<th>性别</th>
			<th>家庭住址</th>
			<th>身份证号</th>
			<th colspan="3">操作</th>
		</tr>
		<c:forEach items="${all}" var="stu" varStatus="status">
			<tr>
				<td>${status.count }</td>
				<td>${stu.id}</td>
				<td>${stu.username}</td>
				<td>${stu.sex}</td>
				<td>${stu.address}</td>
				<td>${stu.idnumber }</td>
				<td><a href="selectOne.do?id=${stu.id}">详细信息&nbsp;</a></td>
				<td><a href="toUpdate.do?id=${stu.id}">修改&nbsp;</a></td>
				<td><a class="delete" href="delete.do?id=${stu.id}"
					onclick="return confirm('你确认要删除该学生信息吗?')">删除&nbsp;</a></td>
			</tr>
		</c:forEach>
	</table>
<!-- <a href="addPage.do">添加用户</a> -->
</body>
</html>